package cn.sherer.beans.weixin;

import java.io.Serializable;

/**
 * 企业微信客服消息
 * https://developer.work.weixin.qq.com/document/path/94670#%E6%B6%88%E6%81%AF%E7%B1%BB%E5%9E%8B
 */
public class WxKfMsgItem implements Serializable {
    private String msgid;
    private String open_kfid;
    private String external_userid;
    private long send_time;
    private int origin;
    private String servicer_userid;
    private String msgtype;
    private WxKfMsgTextItem text;
    private WxKfMsgMediaItem image;
    private WxKfMsgMediaItem voice;
    private WxKfMsgMediaItem video;
    private WxKfMsgMediaItem file;
    private WxKfMsgLocationItem location;
    private WxKfMsgLinkItem link;
    private WxKfMsgBusinessCardItem business_card;
    private WxKfMsgMiniprogramItem miniprogram;
    private WxKfMsgMenuItem msgmenu;
    private WxKfMsgChannelsShopProductItem channels_shop_product;
    private WxKfMsgChannelsShopOrderItem channels_shop_order;
    private Object event;

    public WxKfMsgItem() {
    }

    public String getMsgid() {
        return msgid;
    }

    public void setMsgid(String msgid) {
        this.msgid = msgid;
    }

    public String getOpen_kfid() {
        return open_kfid;
    }

    public void setOpen_kfid(String open_kfid) {
        this.open_kfid = open_kfid;
    }

    public String getExternal_userid() {
        return external_userid;
    }

    public void setExternal_userid(String external_userid) {
        this.external_userid = external_userid;
    }

    public long getSend_time() {
        return send_time;
    }

    public void setSend_time(long send_time) {
        this.send_time = send_time;
    }

    public int getOrigin() {
        return origin;
    }

    public void setOrigin(int origin) {
        this.origin = origin;
    }

    public String getServicer_userid() {
        return servicer_userid;
    }

    public void setServicer_userid(String servicer_userid) {
        this.servicer_userid = servicer_userid;
    }

    public String getMsgtype() {
        return msgtype;
    }

    public void setMsgtype(String msgtype) {
        this.msgtype = msgtype;
    }

    public WxKfMsgTextItem getText() {
        return text == null ? new WxKfMsgTextItem() : text;
    }

    public void setText(WxKfMsgTextItem text) {
        this.text = text;
    }

    public WxKfMsgMediaItem getImage() {
        return image == null ? new WxKfMsgMediaItem() : image;
    }

    public void setImage(WxKfMsgMediaItem image) {
        this.image = image;
    }

    public WxKfMsgMediaItem getVoice() {
        return voice == null ? new WxKfMsgMediaItem() : voice;
    }

    public void setVoice(WxKfMsgMediaItem voice) {
        this.voice = voice;
    }

    public WxKfMsgMediaItem getVideo() {
        return video == null ? new WxKfMsgMediaItem() : video;
    }

    public void setVideo(WxKfMsgMediaItem video) {
        this.video = video;
    }

    public WxKfMsgMediaItem getFile() {
        return file == null ? new WxKfMsgMediaItem() : file;
    }

    public void setFile(WxKfMsgMediaItem file) {
        this.file = file;
    }

    public WxKfMsgLocationItem getLocation() {
        return location == null ? new WxKfMsgLocationItem() : location;
    }

    public void setLocation(WxKfMsgLocationItem location) {
        this.location = location;
    }

    public WxKfMsgLinkItem getLink() {
        return link == null ? new WxKfMsgLinkItem() : link;
    }

    public void setLink(WxKfMsgLinkItem link) {
        this.link = link;
    }

    public WxKfMsgBusinessCardItem getBusiness_card() {
        return business_card == null ? new WxKfMsgBusinessCardItem() : business_card;
    }

    public void setBusiness_card(WxKfMsgBusinessCardItem business_card) {
        this.business_card = business_card;
    }

    public WxKfMsgMiniprogramItem getMiniprogram() {
        return miniprogram == null ? new WxKfMsgMiniprogramItem() : miniprogram;
    }

    public void setMiniprogram(WxKfMsgMiniprogramItem miniprogram) {
        this.miniprogram = miniprogram;
    }

    public WxKfMsgMenuItem getMsgmenu() {
        return msgmenu == null ? new WxKfMsgMenuItem() : msgmenu;
    }

    public void setMsgmenu(WxKfMsgMenuItem msgmenu) {
        this.msgmenu = msgmenu;
    }

    public WxKfMsgChannelsShopProductItem getChannels_shop_product() {
        return channels_shop_product == null ? new WxKfMsgChannelsShopProductItem() : channels_shop_product;
    }

    public void setChannels_shop_product(WxKfMsgChannelsShopProductItem channels_shop_product) {
        this.channels_shop_product = channels_shop_product;
    }

    public WxKfMsgChannelsShopOrderItem getChannels_shop_order() {
        return channels_shop_order == null ? new WxKfMsgChannelsShopOrderItem() : channels_shop_order;
    }

    public void setChannels_shop_order(WxKfMsgChannelsShopOrderItem channels_shop_order) {
        this.channels_shop_order = channels_shop_order;
    }

    public Object getEvent() {
        return event;
    }

    public void setEvent(Object event) {
        this.event = event;
    }

    @Override
    public String toString() {
        return "WxKfMsgItem{" + "msgid=" + msgid + ", open_kfid=" + open_kfid + ", external_userid=" + external_userid + ", send_time=" + send_time +", origin=" + origin +", servicer_userid=" + servicer_userid + ", msgtype=" + msgtype + ", text=" + text +", image=" + image +", voice=" + voice +", video=" + video +", file=" + file +", location=" + location +", link=" + link +", business_card=" + business_card +", miniprogram=" + miniprogram + ", msgmenu=" + msgmenu + ", channels_shop_product=" + channels_shop_product + ", channels_shop_order=" + channels_shop_order + ", event=" + event + "}";
    }
}
